package visitor;/*
 * @auther 顶风少年
 * @mail dfsn19970313@foxmail.com
 * @date 2019-08-06 18:28
 * @notify
 * @version 1.0
 */

public class Client {

    public static void main(String[] args) {
        ObjectStructure aObjects = new ObjectStructure();
        aObjects.add(new NodeA());
        aObjects.add(new NodeB());
        Visitor visitor = new VisitorA();
        aObjects.action(visitor);

    }
}
